{% extends "base.html" %}
{% block title %}
    修复技术简介
{% endblock %}
{% block logo %}

        <span href="" class="dropdown-toggle"><i class="fa fa-user"></i>  {{ user.username }}
            <ul class="dropdown-menu">
                {% if user.is_staff %}
                <li><a href="/psw-modify/">修改密码</a></li>
                <li><a href="/user-list/">用户管理</a></li>
                {% else %}
                    <li><a href="/psw-modify/">修改密码</a></li>
                {% endif %}
            </ul>
        </span> | <a href="/logout/">退出</a>
        <script type="text/javascript">
            $(function(){
                $(".dropdown-toggle").hover(function(){
                    $(".dropdown-menu").toggle();
                })
            })
        </script>

{% endblock %}
{% block content %}
    <div class="data-detail">
        <ul class="ad-ul">
            <li class="clearfix">
                <label>编号 : </label>
                <div>{{ technology.id  }}</div>
            </li>
            <li class="clearfix">
                <label>技术名称 :</label>
                <div>{{ technology.name  }}</div>
            </li>
            <li class="clearfix">
                <label>国际应用情况 : </label>
                <div>{{ technology.internation_info  }}</div>
            </li>
            <li class="clearfix">
                <label>国内应用案例 : </label>
                <div>{{ technology.case_info}}</div>
            </li>
            <li class="clearfix">
                <label>工程图片 : </label>
                <div>
                    {% for image in images %}
                        <div style="display: inline-block; margin-bottom: 5px;">
                            <a href="/medias/{{ image.image }}"><img src="/medias/{{ image.image }}" style="width: 128px;height: 120px;"></a>
                            <p class="" style="text-align: center;border: 1px solid #ccc;">{{ image.imagename }}</p>
                        </div>
                    {% endfor %}
                </div>
            </li>
            <li class="clearfix">
                <label>资料链接 : </label>
                <div>
                    <label>网址链接 : </label>
                    <div>
                        {% for tec_link in data_link %}
                            <a href="http://{{ tec_link.link }}">{{ tec_link.link}}</a><br/>
                        {% endfor %}
                    </div>
                    <label>文件资料 : </label>
                    <div>
                        {% for file in uploadfile %}
                            <a href="/read_pdf?f=/medias/{{ file.upload_file}}">{{ file.filename}}</a><br/>
                        {% endfor %}
                    </div>
                </div>
            </li>
            <li class="tr"> <input type="button" onclick="javascript:history.back();" value="返回" /></li>
        </ul>
    </div>
{% endblock %}